package com.dnzx.client.impl;

import java.util.List;

import org.dnzx.framework.page.PageResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dnzx.client.IDictClient;
import com.dnzx.model.DictBO;
import com.dnzx.service.IDictService;


/**
 * @version 1.0
 */
@Service
public class DictClientImpl implements IDictClient {

private static Logger logger = LoggerFactory.getLogger(DictClientImpl.class);
	
	@Autowired
	private IDictService dictionaryService;

	
	@Override
    public void save(DictBO dictionaryBO) {
        this.dictionaryService.save(dictionaryBO);
    }
    
    @Override
    public void delete(Long id) {
        this.dictionaryService.delete(id);
    }

    @Override
    public void update(DictBO dictionaryBO) {
        this.dictionaryService.update(dictionaryBO);
    }
    
    @Override
    public DictBO get(Long id) {
        return this.dictionaryService.get(id);
    }

	@Override
	public List<DictBO> queryList(DictBO dictionaryBO) {
		return this.dictionaryService.queryList(dictionaryBO);
	}
	
	@Override
	public PageResult<List<DictBO>> queryPage(DictBO dictionaryBO, PageResult<List<DictBO>> pageResult) {
		return this.dictionaryService.queryPage(dictionaryBO, pageResult);
	}
	
}
